﻿if (!$.StringTools)
    $.StringTools = new Object();

$.StringTools.UrlParam = function (name) {
    
    var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
    return results[1] || 0;
}

$.StringTools.Trim = function () {
     return this.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); 
} 